package com.px.common.core;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum RespCode {
    SUCCESS(200, "成功"),
    TOKEN_UPDATED_SUCCESS(20001, "token已更新"),
    FAIL(400, "失败"),
    PARA_ERROR(40001, "参数错误"),
    USER_NOT_EXIST(50001, "该用户已离开此房间"),
    VOTE_FORBIDDEN(40002, "禁止短时间连续投票"),
    NOT_ENOUGH_MONEY(40003, "金额不足"),
    MIN_DIME(40004, "平均不能低于0.1金币"),
    RP_NO_REPEAT(40005, "不能重复抢"),
    WITHDRAW_OVER(40006, "今日提现超限"),
    COURSE_CONFLICT(40007, "课程时间冲突"),
    FIELD_USED(40008, "已被占用"),
    INVITE_CODE_INVALID(40009, "邀请码失效"),
    ROBOT_OVER(40010, "机器人设置超限"),
    RP_INVALID(40011, "红包已过期"),
    RP_DONE(40012, "红包已被抢完"),
    PAY_CHANNEL_ERROR(40013, "支付通道异常"),
    PASSWORD_ERROR(40014, "密码错误"),
    FORBIDDEN(403, "禁止访问"),
    UNAUTHORIZED(401, "未认证"),
    ACCOUNT_DISABLED(40101, "账户已禁用"),
    BAD_CREDENTIAL(40102, "用户名或密码错误"),
    TOKEN_ERROR(40103, "token错误"),
    TOKEN_EXPIRE(40104, "token过期"),
    ACCOUNT_EXIST(40105, "已存在"),
    ACCOUNT_NOT_EXIST(40106, "用户不存在"),
    SMS_ERROR(40107, "验证码错误"),
    IP_INVALID(40108, "IP禁用"),
    NOT_FOUND(404, "不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    private final int status;
    private final String msg;
}
